package org.mdrtwell.annotation;

import java.lang.annotation.Annotation;
import java.lang.reflect.Method;

public class AnnotationUsageInherited extends AnnotationUsage {
	public static void main(String[] args) {
		Class clazz;
		try {
			clazz = AnnotationUsageInherited.class;
			Annotation[] ats = clazz.getDeclaredAnnotations();
			for (Annotation annotation : ats) {
				System.out.println(annotation.annotationType().getName());
			}
		} catch (SecurityException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
